package com.david.tvhelperapp.msgdealers

import com.david.tvhelperapp.MsgBean

class AppMsgDealer :AMsgDealer(){
    var appWordMap = HashMap<String,String>()

    init {
        appWordMap["电视直播"] = "com.david.videoapp"
        appWordMap["直播"] = "com.david.videoapp"
    }

    override fun dealMsg(ip: String, msg: String): Boolean {
        if (msg.contains("打开")) {
            return true
        }
        return false
    }

    override fun dealMsg(ip: String, msgBean: MsgBean): Boolean {
        if ("open_app" == msgBean.actionType) {
            return true
        }
        return false
    }
}